---
layout: home
---


<div class="jumbotron">
    <div class="container">
        <div class="row">
        <div class="col-md-6">
            <h1>Genson</h1>
            <p class="catch-phrase">Fast and easy to use Java <> JSON library.</p>
        </div>
        <div class="col-md-6 space-top">
            <a href="#download-section" class="btn btn-primary btn-lg"><i class="fa fa-cloud-download fa-med"></i> Download</a>
            <a href="https://github.com/owlike/genson" class="btn btn-primary btn-lg"><i class="fa fa-github fa-med"></i> View on Github</a>
        </div>
        </div>
    </div>
</div>


<div class="promotion-details">
<div class="container">
    <div class="row">
        <div class="row">
            <div class="text-center"><h2>Powerful and easy to use</h2></div>
        </div>
        <div class="row featurette-detail">
            <div class="col-lg-6">
                <p class="lead"><i class="fa fa-check"></i> Genson API is designed to be easy to use, it handles for you all the databinding stuff, streaming, etc.</p>
            </div>
            <div class="col-lg-6">
                <p class="lead"><i class="fa fa-check"></i> Highly modular architecture and configurable via the GensonBuilder.</p>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-6">
                <div class="row">
{% highlight java %}
new Genson().deserialize("{}", AwesomeBean.class);
{% endhighlight %}
                </div>
                <div class="row">
                    <p class="lead"><i class="fa fa-check"></i> Full support of <b>generic types, polymorphic types and immutable objects</b> that don't provide a default constructor.</p>
                </div>
            </div>
            <div class="col-lg-6">
{% highlight java %}
new GensonBuilder()
  .useDateFormat(new SimpleDateFormat("yyyy-MM-dd"))
  .useIndentation(true)
  .withSerializers(myCustomSerializer)
.create();
{% endhighlight %}
            </div>
        </div>
    </div>

    <hr />
    <div class="row">
        <div class="text-center">
            <h2>Integrated with Java ecosystem</h2>
        </div>
        <div>
            <div class="row featurette-detail">
                <div class="col-lg-6">
                    <div class="lead"><i class="fa fa-check"></i> Just drop the jar in your classpath to enable Json support in a <b>JAX-RS</b> Application.</div>
                </div>
                <div class="col-lg-6">
                    <div class="lead"><i class="fa fa-check"></i> Leverage Genson features in <b>Spring MVC</b>.</div>
                </div>
            </div>
            <div class="row ">
                <div class="col-lg-6">
                    <div class=" lead"><i class="fa fa-check"></i> Use Genson as your <b>JSR 353</b> implementation and take advantage of Genson speed or just use JSR 353 DOM structures with Genson.</div>
                </div>
                <div class="col-lg-6">
                    <div class="lead"><i class="fa fa-check"></i> Use <b>JAXB</b> annotations with Genson.</div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-6">
{% highlight java %}
new Genson().serialize(
  Json.createArrayBuilder()
    .add(1)
    .add(2)
  .build()
);
{% endhighlight %}
                </div>
                <div class="col-lg-6">
{% highlight java %}
public class Bean {
  @XmlJavaTypeAdapter(BeanAdapter.class)
  private ComplexType complexObject;
  @XmlTransient
  private String password;
}
{% endhighlight %}
                </div>
            </div>
        </div>
    </div>


    <hr />
    <div class="row">
    <div class="row">
        <h2 class="text-center">Performant and scalable</h2>
    </div>
    <div class="row featurette-detail">
        <div class="col-lg-6">
            <div class="lead">
                <img class="img-responsive" src="https://chart.googleapis.com/chart?chtt=total+%28nanos%29&chf=c||lg||0||FFFFFF||1||76A4FB||0|bg||s||EFEFEF&chs=500x150&chd=t:15020,19363,27431,57752,162714,225332&chds=0,247866.06735000003&chxt=y&chxl=0:|json%2Fjson-lib-databind|json%2Fflexjson%2Fdatabind|json%2Fsvenson-databind|json%2Fgoogle-gson%2Fdatabind|json%2Fgenson%2Fdatabind|json%2Fjackson%2Fdatabind-strings&chm=N *f*,000000,0,-1,10&lklk&chdlp=t&chco=660000|660033|660066|660099|6600CC|6600FF|663300|663333|663366|663399|6633CC|6633FF|666600|666633|666666&cht=bhg&chbh=10,0,10&nonsense=aaa.png"/>
            </div>
        </div>
        <div class="col-lg-6">
            <div class="lead">
                <div class="row space-bottom">
                    <i class="fa fa-check"></i> Small memory footprint with the Streaming API.
                </div>
                <div class="row">
                    <i class="fa fa-check"></i> High serialization and deserialization throughput independent from JSON size.
                </div>
            </div>
        </div>
    </div>
    </div>

    <hr />
    <div class="row" name="download-section">
        <div class="row text-center">
            <h2>Get it!</h2>
            <div class="lead">
                <i class="fa fa-check"></i> Genson is packaged as a all in one solution of ~300Kb, everything needed is inside the jar.
            </div>
        </div>

        <div class="row featurette-detail">
                <div class="col-lg-6">
                    <div class="lead"><i class="fa fa-check"></i> No more ClassNotFound exceptions for non maven users because you forgot to download a dependency!</div>
                </div>
                <div class="col-lg-6">
                    <div class="lead">
                        <i class="fa fa-check"></i> No more headaches handling dependency versions for maven users!
                    </div>
                </div>
        </div>

        <div class="row">
            <div class="col-lg-6">
                <div class="text-center">
                    <a href="http://repo1.maven.org/maven2/com/owlike/genson/{{site.latest_version}}/genson-{{site.latest_version}}.jar" class="btn">
                        <i class="fa fa-cloud-download fa-big"></i>
                        <br>Download genson-{{site.latest_version}}.jar
                    </a>
                </div>
            </div>
            <div class="col-lg-6">
                <div>
{% highlight xml %}
<dependency>
  <groupId>com.owlike</groupId>
  <artifactId>genson</artifactId>
  <version>{{site.latest_version}}</version>
</dependency>{% endhighlight %}
                </div>
            </div>
        </div>
    </div>
</div>
</div>